headers["Content-Type"] = "application/rss+xml"
xml.instruct! :xml, :version=>"1.0"	
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
  xml.channel do

    xml.title       @rss_title
    xml.link        url_for(request.env["REQUEST_URI"])
    xml.pubDate     CGI.rfc1123_date @entries.first.published_at if @entries.any?
    xml.description @rss_description
	xml.generator 'igag.us'

    @entries.each do |entry|
      xml.item do
        xml.title       entry.title
        xml.link        url_for entry.permalink.strip
        xml.description "type" => "html" do
           xml.text! entry.title
        end
        xml.pubDate     CGI.rfc1123_date entry.published_at
        xml.guid        url_for entry.permalink.strip
      end
    end

  end
end